package com.hdjk.view.entity;

import com.lst.projectlib.entity.BaseEntity;

/**
 * Created by sxy on 2017/11/3.
 */

public class WalletTransactionEntity extends BaseEntity {
    private String accountNumber;
    private String cancelEnable;
    private String contractNumber;
    private String idName;
    private String merchantNumber;
    private String orderDate;
    private String transactionAmount;
    private String transactionStatus;
    private String transactionType;
    private String transactionUnit;
    public void setAccountNumber(String accountNumber) {
        this.accountNumber = accountNumber;
    }
    public String getAccountNumber() {
        return accountNumber;
    }

    public void setCancelEnable(String cancelEnable) {
        this.cancelEnable = cancelEnable;
    }
    public String getCancelEnable() {
        return cancelEnable;
    }

    public void setContractNumber(String contractNumber) {
        this.contractNumber = contractNumber;
    }
    public String getContractNumber() {
        return contractNumber;
    }

    public void setIdName(String idName) {
        this.idName = idName;
    }
    public String getIdName() {
        return idName;
    }

    public void setMerchantNumber(String merchantNumber) {
        this.merchantNumber = merchantNumber;
    }
    public String getMerchantNumber() {
        return merchantNumber;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }
    public String getOrderDate() {
        return orderDate;
    }

    public void setTransactionAmount(String transactionAmount) {
        this.transactionAmount = transactionAmount;
    }
    public String getTransactionAmount() {
        return transactionAmount;
    }
    public void setTransactionStatus(String transactionStatus) {
        this.transactionStatus = transactionStatus;
    }
    public String getTransactionStatus() {
        return transactionStatus;
    }
    public String getTransactionStatusName() {
        String name="";
        switch (transactionStatus){
            case "failure":
                name="支付失败";
                break;
            case "received":
                name="下单成功";
                break;
            case "priced":
                name="确认成功";
                break;
            case "completed":
                name="交易成功";
                break;
            case "ipo.processing":
                name="认购确认成功";
                break;
            case "pending.payment":
                name="等待付款";
                break;
            case "canceling":
                name="撤单中";
                break;
            case "canceled":
                name="已撤单";
                break;
            case "pending.void":
                name="等待退款";
                break;
            case "void":
                name="交易失败";
                break;
        }
        return name;
    }
    public void setTransactionType(String transactionType) {
        this.transactionType = transactionType;
    }
    public String getTransactionType() {
        return transactionType;
    }
    public String getTransactionTypeName() {
        String name="";
        switch (transactionType){
            case "buy":
                name="申购";
                break;
            case "sellInto":
                name="赎回款至钱包";
                break;
            case "sell":
                name="赎回";
                break;
            case "rapidSell":
                name="快速赎回";
                break;
            case "sellOutfor":
                name="购买基金";
                break;
            case "fast.transfer.out":
                name="快速过户(出)/转账(出)";
                break;
            case "fast.transfer.in":
                name="快速过户(入)/转账(入)";
                break;
        }
        return name;
    }
    public void setTransactionUnit(String transactionUnit) {
        this.transactionUnit = transactionUnit;
    }
    public String getTransactionUnit() {
        return transactionUnit;
    }


}
